const list = [
  {
    en: 'the passwords valid failed that hash',
    zh: '密码错误，请检查后重试',
  },
  {
    en: 'not found the account',
    zh: '未找到该账号，请检查后重试',
  },
  {
    en: 'the cover is empty',
    zh: '请先上传头像',
  },
  {
    en: 'the account name is empty',
    zh: '请先输入账号',
  },
  {
    en: 'the role name is existed',
    zh: '角色名称已存在',
  },
  {
    en: 'verify failed for the code',
    zh: '验证码错误',
  },
  {
    en: 'token is expired by',
    zh: '登录过期，请重新登陆',
  },
  {
    en: "the token is not available",
    zh: '登录过期，请重新登陆',
  },
  {
    en: 'the token is valid',
    zh: '您已在别处退出登录',
  },
  {
    en: 'you have booked the course',
    zh: '您已预约',
  },
  {
    en: 'code been used',
    zh: 'code过期，请退出重试',
  },







  {
    en: 'not found the token',
    zh: "false",
  },
  {
    en: 'code been used',
    zh: "false",
  },

];

export function getServiceErr(en: string): string {
  return list.find((val) => en.includes(val.en))?.zh || en;
}
